package com.mythesis.bpel.ui.client.eventhandler;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.mythesis.bpel.ui.client.wrapper.ControlWrapper;
import com.mythesis.bpel.ui.client.wrapper.ControlWrapper.Boundary;

public class ControlClickHandler implements ClickHandler {
	protected ControlWrapper controlWrapper;
	
	public ControlWrapper getControlWrapper() {
		return controlWrapper;
	}

	public void setControlWrapper(ControlWrapper controlWrapper) {
		this.controlWrapper = controlWrapper;
	}

	@Override
	public void onClick(ClickEvent event) {
		// TODO Auto-generated method stub
		GWT.log(controlWrapper.toString(),	null);
		controlWrapper.renderFocus();
	}
}
